import { request } from '@/utils/request'
import type { PageParams } from '@/types/global'
import type { HotResult } from '@/types/hot'

//热门推荐
type HotPageParams = PageParams & { subType?: string }
export const getHotAPI = (url: string, data?: HotPageParams) => {
  return request<HotResult>({
    url,
    data,
  })
}
